!rm controlcpuplot.eps
set terminal postscript eps enhanced
set output "controlcpuplot.eps"
#set size 3/5., 1.5/3.
set size 2.5/5., 1.5/3.
set xlabel "Start time of next execution" 0,0.5
set ylabel "Cost" 1.5,0

set key 12,0.9
#set key left top
#set key left bottom
#set nokey

#set grid

set pointsize 1.1

#set xtics 4,1

plot [10:13][]  \
"statecost.dat" with lines lt 1 lw 2 title "Control cost",\
"cpucost.dat" with lines lt 6 lw 2 title "CPU cost"



